package MySearch;

public class BiTreeNode {
    // 根节点的值
    public Object data;
    // 左孩子
    public BiTreeNode lchild;
    // 右孩子
    public BiTreeNode rchild;

    public int key;

    public BiTreeNode() {
        this(null, null, null, 0);
    }

    public BiTreeNode(Object data, int key) {
        this(data, null, null, key);
    }

    public BiTreeNode(Object data, BiTreeNode lchild, BiTreeNode rchild, int key) {
        this.data = data;
        this.lchild = lchild;
        this.rchild = rchild;
        this.key = key;
    }


}

